From df70f1c78a9356c6f9987e76787e41d347247655 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Fri, 4 Nov 2005 10:10:11 +0000 Subject: [PATCH] fixed an invalid memory access --- ChangeLog | 5 +++++ babl/babl-format.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 08c929c..4c342bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-04 Øyvind Kolås + + * babl/babl-format.c: (create_name): fixed an invalid memory access in + comparision of component order (and now also length.) + 2005-10-08 Øyvind Kolås * docs/index-static.html.in: Fixed the second processing example. ( diff --git a/babl/babl-format.c b/babl/babl-format.c index 0dae68f..e41aca7 100644 --- a/babl/babl-format.c +++ b/babl/babl-format.c @@ -138,8 +138,12 @@ create_name (BablModel *model, t++; } + if (same_types && + components != model->components) + same_types = 0; + i=components; - while (i--) + while (same_types && i--) { if (*c1 != *c2) { -- 2.30.2